﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true"
	CodeBehind="DataBinding.aspx.cs" Inherits="ControlExplorer.C1ComboBox.DataBinding" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.3" Namespace="C1.Web.Wijmo.Controls.C1ComboBox"
	TagPrefix="wijmo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<wijmo:C1ComboBox ID="C1ComboBox1" runat="server" Width="160px" 
		DataSourceID="AccessDataSource1" DataTextField="UnitPrice" 
		DataTextFormatString="{0:C}" DataValueField="OrderID">
	</wijmo:C1ComboBox>
	<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/C1NWind.mdb"
		SelectCommand="SELECT top 100 [UnitPrice], [OrderID] FROM [Order Details]"></asp:AccessDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Description" runat="server">
		<p><strong>C1ComboBox </strong>控件支持数据绑定，它可以绑定文本和字段值。</p>

		<p>通过下列属性，来进行数据绑定的设置: </p>
		<ul>
		<li><strong>DataSourceID </strong>- 设置数据代码的ID.</li>
		<li><strong>DataTextField </strong>-&nbsp; 通过载入文本值来设置数据代码。.</li>
		<li><strong>DataValueField </strong>-&nbsp; 通过载入字段值来设置文本代码。</li>
		</ul>
		<p>当“文本”和“字段”值被绑定之后，这些绑定的值将会填充<strong>C1ComboBox</strong>的下拉菜单。</p>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ControlOptions" runat="server">
</asp:Content>
